<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="./../template/templateUsuario.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="corpo da página">
        <h:body>
            <div id="bg">
                <p:dialog 
                    visible="true" 
                    closable="false" 
                    draggable="false" 
                    resizable="false" 
                    width="350"
                    height="220">
                    <center>
                        <h:outputText value="Usu&aacute;rio ou senha incorretos!" rendered="#{param.erro}" style="color: darkred"/>
                    </center>
                    <form action="#{request.contextPath}/j_spring_security_check" method="post">
                        <center><h4>LOGIN</h4></center>
                        <h:panelGrid columns="2" cellpadding="5">
                            <h:outputLabel for="j_username" value="Email: *" /> 
                            <h:inputText id="j_username" required="true" size="26" style="height: 30px"/>
                            <h:outputLabel for="j_password" value="Senha: * " />
                            <h:inputSecret id="j_password" required="true" size="26" 
                                           style="height: 30px"
                                           />
                        </h:panelGrid>
                        <center>
                            <button id="entrar"
                                    style="width: 100px; height:40px;"
                                    name="entrar"
                                    class="btn btn-success">Entrar
                            </button>
                        </center>
                    </form>
                </p:dialog>
            </div>
        </h:body>

    </ui:define>

</ui:composition>
